package net.dgg.iboss.sc.backservice.task.dao;/**
 * Created by Administrator on 2018/5/24.
 */

import net.dgg.iboss.sc.backservice.task.entity.ProductTimeStatus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * <p>@Title 超期表dao</p>
 * <p>@Description 办理中相关</p>
 * <p>@Version 1.0.0 版本号</p>
 * <p>@author maoquanyi</p>
 * <p>@date 2018年08月17日</p>
 * <p>Copyright © dgg group.All Rights Reserved. 版权信息</p>
 */
@Repository
public interface ProductTimeStatusDao {

    List<ProductTimeStatus> query(Map map);

    void updateReceiveTimeStatus(@Param("timeStatus") String timeStatus, @Param("idList") List<Long> idList);

    void updateNodeTimeStatus(@Param("timeStatus") String timeStatus, @Param("idList") List<Long> idList);

    void updateOrderTimeStatus(@Param("timeStatus") String timeStatus, @Param("idList") List<Long> idList);

    void updateExpectOpenTimeStatus(@Param("timeStatus") String timeStatus, @Param("idList") List<Long> idList);

    /**
    * <p>@Description 方法的功能描述</p>
    * <p>@author mqy</p>
    * <p>@Time 2018/9/5 0005 16:10 创建时间</p>
    * <p>@return</p>
    */
    void updateDistributionTimeOutStatus(@Param("timeStatus") String timeStatus, @Param("idList") List<Long> idList);

    /**
     * 查询即将超期
     * @return
     */
    List<ProductTimeStatus> queryOverdue();

    /**
     * 查询超期
     * @return
     */
    List<ProductTimeStatus> queryNodeTimeOut();
    /**
     * 查询超期未扣罚
     * @return
     */
    List<ProductTimeStatus> queryNodeTimeOutNoPunish();

    /**
     * 更新合同超期
     * @param timeOut
     * @param idList
     */
    void updateContractTimeStatus(@Param("timeStatus") String timeOut, @Param("idList") List<Long> idList);

}
